# coding:utf-8
# @Time : 2021/5/13 16:20 
# @Author : minuy
# @File : message.py

from sqlalchemy import Column, String, Integer, Text, Date
from app.models import BaseModel


class Message(BaseModel):
    __tablename__ = 't_message'
    __table_args__ = {'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8'}

    user_id = Column(Integer, nullable=False)
    # user_id = Column(Integer, ForeignKey('t_user.id'), nullable=False)
    message = Column(Text, nullable=False)
    sta = Column(Integer, nullable=False, default=1) # 1未读，0，已读
